package map;

public class spisok {
	
		public element head = null;
		public void add_end(element elem){
			if(head == null){
				head = elem;
			}
			else {
				element cur = head;
				while(cur.next != null){
					cur = cur.next;
				}
				cur.next = elem;
			}
			}
		public String toString(){
			StringBuffer sb= new StringBuffer();
			//sb.append("[");
			sb.append("\n");
			element current = head;
			while (current != null){
				sb.append(current.key +"	"+current.value);
				current = current.next;
				sb.append("\n");
			}
		
			//sb.append("]");
			return sb.toString();
		}
	
}
